<?php
class View extends ArrayObject {
  
  public $tpl;
  
  public function __construct($tpl) {
    parent::__construct(array(), ArrayObject::ARRAY_AS_PROPS);
    $this->tpl=new PHPTAL($tpl);   
  }

  public function render() {
  	$this->tpl->CSSDIR=CSSDIR;
    //ob_start();
	//$this->tpl->execute();
  //  include(dirname(__FILE__) . '/' . $file);
    //include($file);
    //return ob_get_clean();
    return $this->tpl->execute();
  }
}